﻿<div id="bt_DauTrang" title="Lên đầu trang" >
        <img src="~/Images/UserDesign/GoToTop.png" width="48" />
</div>
<script type="text/javascript">
    $(function () {
        $(window).scroll(function () {
            if ($(this).scrollTop() != 0) {
                $('#bt_DauTrang').fadeIn();

            } else {
                $('#bt_DauTrang').fadeOut();
            }
        });

        $('#bt_DauTrang').click(function () {
            $('body,html').animate({ scrollTop: 0 }, 800);
        });
    });
</script>